com.justhis.control
Interface Command


public interface Command

common command interface

Version:
$Revision: 1.1 $
Author:
acai

Method Summary
 java.lang.String execute()
          execute command
 java.lang.String getName()
          Get the name of this command.
 void init(CommandDispatcher dispathcher)
          inital command by CommandDispatcher
 

Method Detail

getName

public java.lang.String getName()
Get the name of this command.

Returns:
the name of the command

execute

public java.lang.String execute()
                         throws com.justhis.util.exception.LogicException,
                                java.sql.SQLException,
                                javax.servlet.ServletException,
                                com.justhis.util.exception.UtilException
execute command

Returns:
the page url
Throws:
com.justhis.util.exception.LogicException - if happen logic error.
java.sql.SQLException - if persistence database or any sql error.
javax.servlet.ServletException - if servlet error occur.
com.justhis.util.exception.UtilException - if some utility errors happen

init

public void init(CommandDispatcher dispathcher)
          throws javax.servlet.ServletException
inital command by CommandDispatcher

Parameters:
dispathcher -
Throws:
javax.servlet.ServletException


Copyright © 2003 EastNetworks.Net(China)Co.,Ltd.. All Rights Reserved.